package com.glsc.ngateway.common.api.flowable.dto.task.doTaskParam;

import com.glsc.ngateway.common.api.flowable.dto.FlowCommonTaskDto;
import com.glsc.ngateway.common.api.flowable.dto.task.FlowFormBaseEntityDto;
import com.glsc.ngateway.common.api.flowable.dto.task.formData.AbstractTaskFormDataDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @author xc
 * @date 2023.01.09
 * 流程对象
 */

@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@Data
public class AbstractCreateParamDto<D extends FlowFormBaseEntityDto, T extends AbstractTaskFormDataDto<D>> extends FlowCommonTaskDto {

    @NotNull
    @ApiModelProperty(value = "表单数据")
    private T flowableFormData;
}
